import http from "../utils/request"

//评论列表 /admin/comment/commentPage
const commentPage = (data) => {
    return http.request({
        url: "/admin/comment/commentPage",
        method: "get",
        data: data
    })
}

//删除评论 /admin/comment/{id}
const commentDelete = (data) => {
    return http.request({
        url: "/admin/comment/" + data.id,
        method: "delete",
        data: data
    })
}

export {
    commentPage,
    commentDelete
}